package com.itheima.extendsdemo;

/**
 * 2025/4/12 10:19
 */
public class TestEmployee {
    public static void main(String[] args) {

        Teacher teacher = new Teacher();
        Consultant consultant = new Consultant();

        teacher.name = "张三";
        teacher.age = 38;
        teacher.subject = "数学";
        teacher.salary = 5000;

        consultant.name = "李四";
        consultant.age = 28;
        consultant.special = "java";
        consultant.salary = 6000;

        teacher.teach();
        teacher.work();

        consultant.advice();
        consultant.work();




    }
}
